package com.ay277.htqoa.base.entity;

import javax.persistence.*;
import java.util.Date;

/**
 *
 * Created by accp09 on 2016/12/7.
 */
@MappedSuperclass
public class BaseEntity extends IDEntity {
    //创建人
    private User user;
    //修改人
    private User updateUser;
    //创建时间
    private Date createTableTime;
    //修改时间
    private Date updateTableTime;
    @ManyToOne
    @JoinColumn(name = "createUserid")
    public User getUser() {
        return user;
    }

    public void setUser(User user) {
        this.user = user;
    }
    @ManyToOne
    @JoinColumn(name = "updateUserid")
    public User getUpdateUser() {
        return updateUser;
    }

    public void setUpdateUser(User updateUser) {
        this.updateUser = updateUser;
    }

    public Date getCreateTableTime() {
        return createTableTime;
    }

    public void setCreateTableTime(Date createTableTime) {
        this.createTableTime = createTableTime;
    }

    public Date getUpdateTableTime() {
        return updateTableTime;
    }

    public void setUpdateTableTime(Date updateTableTime) {
        this.updateTableTime = updateTableTime;
    }
}
